<?php
include_once("../modules/checkA.php");
include_once("../../config.php");
$plate=select_one_line_all_items($table_Prefix."plate","mid = 'access_record'");
?>



<?
//用来判断当前系统属于什么板块
$system_part = $plate['mid'];
?>
 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php include_once(ROOT_PATH_.'/controlbase/modules/head.php'); ?>


	
</head>

<body>

<div id="topbar"><?php include ROOT_PATH_.'/controlbase/modules/topbar.php'; ?></div>

<div id="container" class="rental">

    <div id="maincontent">

        <div id="sidebar">
            <?php include ROOT_PATH_.'/controlbase/modules/sidebar.php'; ?>
        </div>


<div id="content"> 




<div class="box ticket-add-box layui-form">
<h1>新增签到记录</h1>





<form id="add-rental-form" method="post" action="detail-add-function.php?nav-itemed=rental" enctype="multipart/form-data" class="layui-form">

    <? $chepai=select_one_line_all_items($table_Prefix."equipment","nid = '".$_REQUEST['equipmentid']."'")?>

    <div class="layui-form-item">
        <label class="layui-form-label">车牌</label>
        <div class="layui-input-block">
            <div class="input_unwritebal_block"><? echo $chepai['name']?></div>
            <input type="hidden" name="name" value="<?echo $chepai['name']?>">
        </div>
    </div>





    <div class="layui-form-item">
        <label class="layui-form-label">签到时间</label>
        <div class="layui-input-block">
            <input type="text" name="ticketdate" id="date" autocomplete="off" class="layui-input"  value="<?echo date('Y-m-d')?>" onclick="laydate({istime: true, format: 'YYYY-MM-DD'})" class="laydate-icon">
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label">金额</label>
        <div class="layui-input-block">
            <input type="text" name="cost" placeholder="请输入金额" lay-verify="required"  autocomplete="off" class="layui-input"  value="<?echo $chepai['payment']?>">
        </div>
    </div>



    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label">备注</label>
        <div class="layui-input-block">
            <textarea name="remark" placeholder="备注" class="layui-textarea"><? echo $chepai['remark']?></textarea>
        </div>
    </div>






    <div class="layui-form-item">
        <label class="layui-form-label">处理状态</label>
        <div class="layui-input-block">
            <input type="radio" name="status" value="正常" title="正常" checked >
            <input type="radio" name="status" value="异常" title="异常" >
        </div>
    </div>



    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label">处理备注</label>
        <div class="layui-input-block">
            <textarea name="dealremark" placeholder="备注" class="layui-textarea"> </textarea>
        </div>
    </div>







        <input name="equipmentid" type="hidden" value="<? echo $_REQUEST['equipmentid'] ?>"/>
        <input name="sys_part" type="hidden" value="<? echo $system_part ?>"/>
        <input name="nowpageid" type="hidden" value="<? echo $_REQUEST['nowpageid'] ?>"/>
        <input name="sortby" type="hidden" value="<? echo $_REQUEST['sortby'] ?>"/>










        <div class="layui-form-item">
    <div class="layui-input-block">
      <button class="layui-btn" lay-submit lay-filter="formrentalAdd" type="submit">立即提交</button>
      <button type="reset" class="layui-btn layui-btn-primary">重置</button>
    </div>
  </div>
</form>
 

 
 
        </div>
		
 
 
<!--content端點01-->
</div>
<!--maincontent端點01-->
<br class="clearfloat"/>
</div>
<!--container端點01-->
</div>








<?php include_once('../modules/footer.php'); ?> </body>
</html>
